import { createApp } from 'vue'
import App from './App.vue'
import ElementUI from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/main.scss'
import axios from "./utils/request.js";
import router from '@/router'
import {createPinia} from "pinia";
import {createPersistedState} from "pinia-persistedstate-plugin";
import locale from 'element-plus/dist/locale/zh-cn'
import 'element-plus/theme-chalk/dark/css-vars.css'
const app = createApp(App);
const pinia = createPinia();
const persist = createPersistedState()
pinia.use(persist)
app.use(pinia);
app.use(ElementUI,{locale})
app.use(router)
app.mount('#app')
app.config.globalProperties.$axios = axios;